package com.qf.hospital.system.service.impl;

import com.qf.hospital.system.mapper.SysMenuMapper;
import com.qf.hospital.system.service.SysMenuService;
import com.qf.hospital.system.vo.DTreeVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SysMenuServiceImpl implements SysMenuService {

    @Autowired
    private SysMenuMapper sysMenuMapper;

    @Override
    public List<DTreeVO> loadMenuMangerLeftTreeJson(Integer spread) {
        return sysMenuMapper.findAllMenuAsDTreeVOBySpread(spread);
    }
}
